<!DOCTYPE html>
<html>

<head>
    <link rel="stylesheet" href="../../css/common/reset.css">
    <link rel="stylesheet" href="../../css/readMore.css">
</head>

<body style="background: #fff;">
    <!--列表 class="wechatPopup "-->
    <form action="?" class="layui-form">
        <ul>
            <li>
                <p class="fl labelText">商户名：</p>
                <p class="fl" id="mecchantsName">

                </p>
            </li>
            <li>
                <p class="fl labelText">店铺类型：</p>
                <p class="fl" id="shopPlatform">

                </p>
            </li>

            <li>
                <p class="fl labelText">店铺名：</p>
                <p class="fl" id="shopName">

                </p>
            </li>
            <!-- <li>
                <p class="fl labelText">店铺性质：</p>
                <p class="fl">
                    个人
                </p>
            </li> -->
            <li>
                <p class="fl labelText">发货人：</p>
                <p class="fl" id="shopShipperName">

                </p>
            </li>
            <li>
                <p class="fl labelText">发货人手机号码：</p>
                <p class="fl" id="shopShipperTel">

                </p>
            </li>
            <li>
                <p class="fl labelText">发货省市区：</p>
                <p class="fl" id="shopShipperAddress">

                </p>
            </li>
            <li>
                <p class="fl labelText">发货详细地址：</p>
                <p class="fl" id="detailedAddress">

                </p>
            </li>
            <!-- <li>
                <p class="fl labelText">备注：</p>
                <p class="fl">
                    要买的赶紧拍下吧，亲
                </p>
            </li> -->
            <li>
                <p class="fl labelText">查看上传图片：</p>
                <p class="fl exampleImgBox">
                    <img src="" alt="" width="70px" class="imgPic1">
                    <img src="" alt="" width="70px" class="imgPic2">
                </p>
            </li>
            <!-- <li>
                <input type="button" value="返回" class="btn editBtn">
            </li> -->
        </ul>
    </form>
    <script src="../../js/jquery.min.js"></script>
    <script src="../../js/jquery.cookie.js"></script>
    <script src="../../js/dataRequest.js"></script>
    <script>
        // var shopId = $.cookie('shopId');
        // console.log("你是个什么readInfo", shopId);
        // child();
        function child(obj) {
            console.log('接收数据');//获取父界面的传值
            console.log(obj);//获取父界面的传值
            console.log('接收数据');//获取父界面的传值
            $.ajax({
                type: "get",
                url: "http://47.92.174.143:8888/v1/client/shop/" + obj,
                dataType: 'json',
                success: function (data) {
                    console.log("请求数据为++++++++++++++", data.data)
                    // 存储总额
                    if (data.data == null || !data.data) {
                        layer.msg('数据出错,请重新登录', {
                            icon: 5,//提示的样式
                            time: 6000, //6秒关闭（如果不配置，默认是3秒）//设置后不需要自己写定时关闭了，单位是毫秒
                            end: function () {
                                location.href = '/login.html';
                            }
                        });
                    } else {
                        // 拿取图片地址
                        var imgStr = data.data.imagePath;
                        // console.log("img----Str", imgStr);
                        var arr = [];

                        if (null != imgStr) {
                            // console.log("进来没");
                            arr = imgStr.split(',');
                            // for (var i = 0; i < arr.length; i++) {
                            // console.log("++++++", arr[i]);
                            $('.imgPic1').attr('src', SERVE_URL + arr[0]);
                            $('.imgPic2').attr('src', SERVE_URL + arr[1]);
                            // }
                        }

                        $("#mecchantsName").html(data.data.mecchantsName);
                        $("#shopPlatform").html(data.data.shopPlatform);
                        $("#shopName").html(data.data.shopName);
                        $("#shopShipperName").html(data.data.shopShipperName);
                        $("#shopShipperTel").html(data.data.shopShipperTel);
                        $("#detailedAddress").html(data.data.detailedAddress);
                        console.log("拿到省市了么", data.data.shopShipperAddress)
                        $("#shopShipperAddress").html(data.data.shopShipperAddress);
                    }
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    // console.log(XMLHttpRequest);
                    // console.log(textStatus);
                    // console.log(errorThrown);
                }
            });
        }
    </script>
</body>

</html>